
    //name abc
    //123

    var cat_id = getQueryString('cat_id');

    var oGoods = document.querySelector('#hot-goods');
    myajax.get('http://h6.duchengjiu.top/shop/api_goods.php',
    {cat_id: cat_id},
    (err,responseText) => {
      var json = JSON.parse(responseText);
      console.log(json);
      var data = json.data;
      //判断如果没有数据，则显示空的提示
      if (data.length === 0) {
        oGoods.innerHTML = "<center>后端程序员跑路了</center>";
        return;
      }
      for (var i = 0; i < data.length; i++) {
        var obj = data[i];
        oGoods.innerHTML += `<li class="goods"><a href="goods.html?goods_id=${obj.goods_id}">
          <div><img src="${obj.goods_thumb}" /></div>
          <div class="goods_name">${obj.goods_name}</div>
          <br>
          <div>${obj.price}</div></a>
        </li>`;
      }
    });
